export default {
    namespaced: true,
    //共享数据
    state: {
        //是否显示提示框
        istsk: false,
        title: "你说傻",
        type: 'zhengque'
    },
    mutations: {
        //修改是否显示提示框
        changeistsk(state, payload) {
            state.istsk = payload.isshow,
                state.title = payload.title,
                state.type = payload.type

        }
    },
    actions: {
        fzdsq(context, pay) {
            context.commit("changeistsk", pay);
            setTimeout(() => {
                context.commit("changeistsk", {
                    isshow: false
                })
            }, 2000);

        }
    }
}